package com.oascarmovie.helper;

import org.json.JSONException;
import org.json.JSONObject;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;

public class XML2JSON extends DefaultHandler {

  private JSONObject resultJSON  = new JSONObject();
  //http://epg.mobile.pptv.com/search-ex.ashx?auth=d410fafad87e7bbf6c6dd62434345818&c=199&s=1&k=%E7%86%A0%E7%86%A0
  public XML2JSON() {
    try {
      resultJSON.put("", "");
    } catch (JSONException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
  }
  
  @Override
  public void endElement(String uri, String localName, String qName)
      throws SAXException {
    // TODO Auto-generated method stub
    super.endElement(uri, localName, qName);
  }

  @Override
  public void startElement(String uri, String localName, String qName,
      Attributes attributes) throws SAXException {
    // TODO Auto-generated method stub
    super.startElement(uri, localName, qName, attributes);
  }
  
  public void characters(char[] ch, int start, int length) 
      throws SAXException { 

      //currentValue.append(ch, start, length); 
  } 

  
}
